package com.yang.controller.wx;

import com.yang.bean.common.BaseRespVo;
import com.yang.service.wx.WxStorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author dinghongrui
 * @create 2022/09/09 14:48
 */
@RestController
@RequestMapping("wx/storage")
public class WxStorageController {
    @Autowired
    WxStorageService wxStorageService;

    @RequestMapping("upload")
    public BaseRespVo uploadFile(MultipartFile file) {
        BaseRespVo baseRespVo = wxStorageService.uploadFile(file);
        return baseRespVo;
    }
}
